package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.enjoyor.soa.traffic.core.efoms.constant.TemplateSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.Template;
import com.enjoyor.soa.traffic.core.efoms.mapper.ITemplateMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;


@Service
public class TemplateMapper extends BaseMapper<Template> implements ITemplateMapper {

    @SuppressWarnings("rawtypes")
    @Override
    public Page selectTemplatePage(Page page) {
        return this.selectPageInfo(getSqlName(TemplateSqlId.SQL_SELECT_ALL), page);
    }
    
    @Override
	public List<Template> selectList(Map<String, Object> map) {
		return sqlSessionTemplate.selectList(getSqlName(TemplateSqlId.SQL_SELECT_LIST), map);
	}
}
